package com.bdqn.service.impl;

import com.bdqn.mapper.Sys_userMapper;
import com.bdqn.pojo.Sys_user;
import com.bdqn.service.Sys_userService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class Sys_userServiceImpl implements Sys_userService {
    @Autowired
    Sys_userMapper sysUserMapper;

    @Override
    public Sys_user getUser(String username, String password) {
        return sysUserMapper.selectUser(username, password);
    }

    @Override
    public Sys_user getUser(int userid) {
        return sysUserMapper.selectByid(userid);
    }
}
